package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: DishFlavorMapper
 * Package: com.sky.mapper
 * Description:
 *
 * @Author zhangdingye
 * @Create 2025/3/28 下午1:45
 * @Version 1.0
 */
@Mapper
public interface DishFlavorMapper {

    /**
     * 批量插入口味数据
     * @param dishFlavorList
     */
    void insertBatch(List<DishFlavor> dishFlavorList);

    /**
     * 根据菜品id删除对应的口味数据
     * @param id
     */
    void deleteByDishId(Long id);

    /**
     * 根据id批量删除
     * @param DishIds
     */
    void deleteBatch(List<Long> DishIds);

    /**
     * 根据菜品id查询对应的口味数据
     * @param id
     * @return
     */
    List<DishFlavor> getByDishId(Long id);
}
